<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>查看设备</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<s:include value="head.jsp"></s:include>
		<h1>
			设备列表
		</h1>
		<div class="content">

			<table>
				<tr>
					<td>
						设备号
					</td>
					<td>
						ip地址
					</td>
					<td>
						端口号
					</td>
					<td>
						密码
					</td>
					<td>
						考勤起始时间
					</td>
					<td>
						考勤结束时间
					</td>
					<td>
						更改
					</td>
					<td>
						删除
					</td>
				</tr>
				<tr>
					<s:iterator value="list">
						<td>
							<s:property value="deviceNo" />
						</td>
						<td>
							<s:property value="ip" />
						</td>
						<td>
							<s:property value="portNo" />
						</td>
						<td>
							<s:property value="password" />
						</td>
						<td>
							<s:property value="startTime" />
						</td>
						<td>
							<s:property value="endTime" />
						</td>
						<td>
							<a
								href="admin/modifyDevice.action?deviceId=<s:property value='deviceId'/>">
								更改 </a>
						</td>
						<td>
							<a
								href="admin/deleteDevice.action?deviceId=<s:property value='deviceId'/>">
								删除 </a>
						</td>
				</tr>
				</s:iterator>
			</table>
		</div>
	</body>
</html>
